-- GENERATED SPELL FOR [Redfang Elder] --


function spell0_26436(pUnit, Event) --@Chain Heal,Heal--
pUnit:FullCastSpellOnTarget(14900,pUnit)
pUnit:RegisterEvent('Sorts_26436', 2500, 1)
end

function spell1_26436(pUnit, Event) --@Hurricane,n/a--
pUnit:FullCastSpellOnTarget(32717,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26436', 10000, 1)
end

function Sorts_26436(pUnit, Event)
local choix_sorts_26436 = math.random(0, 1)
if choix_sorts_26436 == 0 then
pUnit:RegisterEvent('spell0_26436', 1, 1)
end
if choix_sorts_26436 == 1 then
pUnit:RegisterEvent('spell1_26436', 1, 1)
end
end

function mob26436_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26436', math.random(1500, 3000), 1)
end

function mob26436_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26436_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26436_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26436, 1, 'mob26436_Action')
RegisterUnitEvent(26436, 2, 'mob26436_Leave')
RegisterUnitEvent(26436, 3, 'mob26436_Kill')
RegisterUnitEvent(26436, 4, 'mob26436_Die')
